package com.weiiew.calculationService.element;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description
 * @Author 魏锴
 * @Date 2025/3/3
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class elGraph {
    private List<elNode> nodes = new ArrayList<>();
    private List<elEdge> edges = new ArrayList<>();
    public void addNode(elNode node){
        nodes.add(node);
    }
    public void addEdge(elEdge edge){
        edges.add(edge);
    }
}
